@extends('member.member')

@section('title', '我的私信')

@section('rightcontainer')
<div class="" style="float: right;width: 993px;height: 40px;background: #f6f6f6;margin-top: 20px;">
	<input class="" style="height:40px;width:290px;font-size: 16px;float: left;padding-left:1em" type="text" placeholder="查找私信记录">
	<div class="search_pic fl"><i class="icon-search"></i></div>
	<div class="clearfix"></div>
</div>
			
<div id="wendang" class="member-container">
	@foreach($notifys as $key=>$notify)
    <div class="my_letter clearfix @if($key > 0 ) bordertop @endif"  id="news_{{ $notify->id }}">
    	<div class="fl ml-20 mt-10">
    		<a href=""><img src="{{$notify->userlogo}}" style="border-radius: 25px;width: 50px; height: 50px;"></a>
    	</div>
    	<div class="fl ml-10 mt-10" style="width: 900px;">
    		<span class="ft-14 cor-2">{{$notify->sender_name}}</span>
    		<span class="ft-12 cor-5">{{$notify->updated_at}}</span>
    	</div>
    	<div class="fl ml-10 mt-10">
    		<span class="cor-4 ft-14">{{$notify->message}}</span>
    	</div>
    	<div class="fr cor-4 mr-10" style="padding:0px 20px;">
    		<a href="javascript:void(0)" onclick="messageDetail('/member/message/{{ $notify->id }}','{{ $notify->id }}')">
    			<img src="{{ asset('/images/front/member/shape.jpg') }}">
    			<span class="mr-10" id="unread_{{$notify->id}}">{{$notify->unread}}</span>
    		</a> |
            <a href="javascript:void(0)" onclick="delete_one('/member/message/{{$notify->id}}','{{$notify->id}}','{{csrf_token()}}')">
                <img src="{{ asset('/images/front/member/trash.png')}}">
            </a>
    	</div>
    </div>
    @endforeach
    <div class="paginate">{!! $notifys->render() !!} </div>
</div>
<!-- 私信弹框 -->

<div class ="modal fade bs-example-modal-sm" id="myMessageDetail" tabindex ="-1" role ="dialog" aria-labelledby ="mySmallModalLabel">
  <div class ="modal-dialog modal-sm">
    <div class ="modal-content">
      <div style="" class="letter_big">
        <form id="messageForm">
      		<div class="letter_h" >
      			<button type="button" class="close msgbtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" class="font-18">&times;</span></button>
                <h4 class="modal-title title" id="myModalLabel">YueGuang光</h4>
      		</div>
   			<div class="user_talk clearfix" id="message_content">
   				
      		</div>
      		<div class="talk_res">
      			<textarea class="talk_area" name="content" id="msgContent"></textarea>
      		</div>
      		<div class="clearfix"></div>
      		<div class="talk_bottom">
      		    {!! csrf_field() !!}
      			<button class="res_but" type="button" id="messge_send">回复</button>
      		</div>
        </form>
   		</div>
    </div>
  </div>
</div>
@stop

<!-- 底部块 -->
@section('footer')
    @parent
@stop